<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=map.keys(), initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let map = new Map([['name', 'zhangsan'], ['age', 19], ['gender', '男']])
    // 转化成数组
    console.log([...map]);
        //[['name', 'zhangsan'], ['age', 19], ['gender', '男']]

  </script>
</body>

</html>